package com.zfy.utils;

import com.google.gson.Gson;

public class Result {
    public int code;
    public String msg;
    public int count;
    public Object data;

    public static String toClient(int code, String msg, int count, Object data) {
        Result r = new Result();
        r.code = code;
        r.msg = msg;
        r.count = count;
        r.data = data;
        Gson t = new Gson();
        return t.toJson(r);
    }
	public static String toClient(int code, String msg) {
		Result r = new Result();
		r.code = code;
		r.msg = msg;
		Gson t = new Gson();
		return t.toJson(r);
	}


}
